package com.chengxiaoxiao.ai_demo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 分页对象封装
 *
 * @Description:
 * @Author Cheng Xiaoxiao
 * @Date: 2025/3/12 16:24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分页结果显示类")
public class PageResult<T> implements Serializable {
    @Schema(description = "总记录数", example = "100")
    private Long total;
    @Schema(description = "页码大小", example = "10")
    private Long size;
    @Schema(description = "当前页", example = "1")
    private Long page;
    @Schema(description = "分页数据")
    private List<T> rows;
}
